package com.training.bt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.training.bt.entity.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
    // 自定义查询方法
    List<Comment> selectByPostId( Long postId);
    List<Comment> selectByUserId( Long userId);
}